<?php
namespace Cumulon\Service;

use Illuminate\Support\ServiceProvider as LaravelServiceProvider;

class ServiceProvider extends LaravelServiceProvider
{
    /**
     * Register the provider.
     */
    public function register()
    {
        $this->setupConfig();
    }

    /**
     * Setup the config.
     */
    protected function setupConfig()
    {
        $source = realpath(__DIR__.'/config.php');

        $this->mergeConfigFrom($source, 'yduser');
        $this->publishes([
            $source => config_path('cumulonservice.php'),
        ], 'config');
    }

}